﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DAO;
using DTO;
namespace BUS
{
    public class NguoiDungBUS
    {
        NguoiDungDAO nd = new NguoiDungDAO();
        public bool KiemTraUserPass(string user, string pass)
        {
            return nd.KiemTraUserPass(user, pass);
        }
        public string TinhTrang(string user)
        {
            return nd.TinhTrang(user);
        }
        public SqlDataReader DataNguoiDung(string user)
        {
            return nd.DataNguoiDung(user);
        }
        public void updatepaw(string paw, string user)
        {
            nd.updatepass(paw, user);
        }
        public DataTable GetData()
        {
            return nd.GetData();
        }
        public SqlDataReader datafull()
        {
            return nd.Datafull();
        }
        public bool KiemTraUser(string user)
        {
            return nd.KiemTraUser(user);
        }

        public void delete(string user)
        {
            nd.delete(user);
        }
        public DataTable GetDataUser(string user)
        {
            return nd.GetDataUser(user);
        }
        public string mail(string user)
        {
            return nd.mail(user);
        }
    }
}
